package com.yunfeng.aolin.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.yunfeng.common.entity.Idable;

@Entity
@Table(name = "aolin_inquirymaterials")
public class InquiryMaterials implements Idable<Long> {
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long id;

	/**
	 * 联系方式
	 */
	@Column(nullable = false, length = 255)
	private String contact;

	/**
	 * 产品规格
	 */
	@Column(nullable = false, length = 255)
	private String format;

	/**
	 * 品名
	 */
	@Column(nullable = false, length = 32)
	private String name;

	/**
	 * 采购单价
	 */
	@Column(nullable = false, length = 11)
	private String price;

	/**
	 * 是否送样
	 */
	@Column(length = 10)
	private String sample;

	/**
	 * 供应商
	 */
	@Column(nullable = false, length = 255)
	private String supplier;

	/**
	 * 日期
	 */
	@Column(nullable = false, length = 19)
	@Temporal(TemporalType.TIMESTAMP)
	private Date time;

	/**
	 * 型号
	 */
	@Column(nullable = false, length = 255)
	private String type;

	/**
	 * 备注
	 */
	@Column(length = 255)
	private String description;

	/**
	 * @return the id
	 */
	public Long getId() {
		return id;
	}

	/**
	 * @param id
	 *            the id to set
	 */
	public void setId(Long id) {
		this.id = id;
	}

	/**
	 * @param contact
	 *            the contact to set
	 */
	public void setContact(String contact) {
		this.contact = contact;
	}

	/**
	 * @return the contact
	 */
	public String getContact() {
		return this.contact;
	}

	/**
	 * @param format
	 *            the format to set
	 */
	public void setFormat(String format) {
		this.format = format;
	}

	/**
	 * @return the format
	 */
	public String getFormat() {
		return this.format;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		return this.name;
	}

	/**
	 * @param price
	 *            the price to set
	 */
	public void setPrice(String price) {
		this.price = price;
	}

	/**
	 * @return the price
	 */
	public String getPrice() {
		return this.price;
	}

	/**
	 * @param sample
	 *            the sample to set
	 */
	public void setSample(String sample) {
		this.sample = sample;
	}

	/**
	 * @return the sample
	 */
	public String getSample() {
		return this.sample;
	}

	/**
	 * @param supplier
	 *            the supplier to set
	 */
	public void setSupplier(String supplier) {
		this.supplier = supplier;
	}

	/**
	 * @return the supplier
	 */
	public String getSupplier() {
		return this.supplier;
	}

	/**
	 * @param time
	 *            the time to set
	 */
	public void setTime(Date time) {
		this.time = time;
	}

	/**
	 * @return the time
	 */
	public Date getTime() {
		return this.time;
	}

	/**
	 * @param type
	 *            the type to set
	 */
	public void setType(String type) {
		this.type = type;
	}

	/**
	 * @return the type
	 */
	public String getType() {
		return this.type;
	}

	/**
	 * @param description
	 *            the description to set
	 */
	public void setDescription(String description) {
		this.description = description;
	}

	/**
	 * @return the description
	 */
	public String getDescription() {
		return this.description;
	}
}
